#!/usr/bin/env bash
function func1() {
	echo "'$FUNCNAME': $FUNCNAME"
}

function func2() {
	echo '$FUNCNAME': "$FUNCNAME"

}

script_dir=$(cd $(dirname $0) && pwd)
echo '$script_dir': "$script_dir" 
echo '$BASH_SOURCE[0]':    "${BASH_SOURCE[0]}"
echo '$0':  "${0}"

if [ "${BASH_SOURCE[0]}" = "${0}" ]; then
	echo "BASH_SOURCE: ${BASH_SOURCE}"
	func1
	func2
fi
